body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 800px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: transparent;
    margin: 0;
    position: relative;
}

#chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 80px;
    padding-top: 20px;
}

#chat-box {
    flex: 1;
    overflow: scroll;
    padding: 20px;
    padding-bottom: 60px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
#chat-box::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.message {
    margin-bottom: 15px;
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.user-message {
    text-align: right;
    margin-left: 20%;
    padding: 0px;
}

.user-content {
    display: inline-block;
    background-color:beige;
    text-align: left;
    padding-right: 15px;
    padding-top: 1px;
    padding-bottom: 1px;
    font-size: 14px;
    margin: 0px;
    padding-left: 15px;
    border-radius: 8px;
}

.assistant-message {
    background-color: #f5f5f5;
    margin-right: 20%;
}

.assistant-message pre {
    background-color: #eee;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.3;
}

.assistant-message code {
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    /* background-color: #afafaf; */
    padding: 2px 4px;
    border-radius: 2px;
    font-size: 12px;
}

.assistant-message table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 12px;
}

.assistant-message th,
.assistant-message td {
    padding: 8px;
    border: 1px solid #ddd;
}

.assistant-message blockquote {
    border-left: 4px solid #ddd;
    padding-left: 10px;
    color: #666;
    margin: 10px 0;
}

.think-content {
    color: #666;
    margin-top: 10px;
    padding: 0px 10px 0px 10px;
    font-size: 12px;
    border-left: 2px solid #ccc;
    margin-bottom: 15px;
}

.input-area {
    display: flex;
    gap: 10px;
    padding: 20px;
    background-color: #f8f9fa;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.message-actions {
    display: flex;
    gap: 8px;
    margin-bottom:10px;
}

.copy-btn, .copy-md-btn {
    background: #fff;
    opacity: 0.6;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}

.copy-btn:hover, .copy-md-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.copy-btn i, .copy-md-btn i {
    font-size: 14px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
    font-size: 14px;
}

#send-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#send-btn:hover {
    background-color: #0056b3;
}

#send-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.toast {
    position: fixed;
    bottom: 120px;
    /* right: 20px; */
    align-self: center;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    opacity: 0.6;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.loading-spinner {
    /* position: absolute; */
    /* left: 10px; */
    /* top: 50%; */
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #7f7f7f;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none;
}
